<style>
#nav-line {
    width:100%;
    overflow:auto;
    text-align:left;
    background-color:#f0d9e9;
    background-image:url(icon/canright24.png);
    background-repeat:no-repeat;
    background-position:center right
}
#nav-line > div { padding-left:6px; width:500px }
#nav-line > div > a > div { display:inline-block; padding:8px 4px 8px 4px; line-height:20px }
.nav-line-active { color:#c70; background-color:#fff9f9; border-top:3px solid #fff; border-bottom:3px solid #c70 }

</style>
<div id="nav-line">
<div class="childs-inlineblock">
<a href="javascript:;"><div style="color:red">*new*</div></a>
<a href="javascript:;"><div class="nav-line-active">爆款</div></a>
<a href="javascript:;"><div>饮品</div></a>
<a href="javascript:;"><div>糖果</div></a>
<a href="javascript:;"><div>饼干</div></a>
<a href="javascript:;"><div>蜜饯</div></a>
<a href="javascript:;"><div>坚果</div></a>
<a href="javascript:;"><div>膨化</div></a>
<a href="javascript:;"><div>肉品</div></a>
<a href="javascript:;"><div>蔬果</div></a>
<a href="javascript:;"><div>其他</div></a>
</div>
</div>
<script>
// index页面导航栏激活特效
var nav_index = $("#nav-line");
var nav_index_childs = nav_index.children("div").children("a");
nav_index_childs.click(function(){
    nav_index_childs.children("div").removeClass("nav-line-active");
    $(this).children("div").addClass("nav-line-active");
});
</script>